package com.wmx.entity;

import com.wmx.dao.Behavior;

/**
 * @author:wmx 2025-03-25 11:50
 * 1、功能:
 * 2、参数{
 * <p>
 * <p>
 * }
 **/
public class Pet implements Behavior {
    private String name;

    public Pet(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name;
    }

    @Override
    public void cry(Object cryWay) {
        System.out.println(this.name+"的叫唤方式:"+cryWay);
    }
}
